package com.itheima.reggie.common;

/**
 * @author ck
 * @date 2021/10/13 16:49
 */
public class BaseContext  {

    private static final ThreadLocal<Long> threadLocal = new ThreadLocal<>();



    public static void  set(Long id){
        threadLocal.set(id);
    }

    public static  Long get(){
        return threadLocal.get();
    }
}
